#pragma once

#include "kx/pch.h"
#include "kx/X11Window.h"

namespace Kx
{

    struct X11Helper
    {

        Display *m_Display = 0;

        bool OpenDisplay();

        int CloseDisplay();

        typedef bool (*WindowFilter)(const Kx::X11Window &);

        std::vector<Kx::X11Window> GetAllWindows(WindowFilter filter);

        void CaptureWindows(Display *display, Window window, std::vector<Kx::X11Window> &windows_info, WindowFilter filter);

    private:

    };
};